var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var C = /** @class */ (function () {
    function C(name, num) {
        this.name = name;
        this.num = num;
    }
    C.prototype.getNum = function () {
        if (this.num === undefined) {
            return 10;
        }
        else {
            return this.num;
        }
    };
    C.prototype.doSome = function (n) {
        for (var i = 0; i <= n; i++) {
            console.log(this.name);
        }
    };
    return C;
}());
var CA = /** @class */ (function (_super) {
    __extends(CA, _super);
    function CA() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.CANumber = 11;
        return _this;
    }
    CA.prototype.doSome = function () {
        _super.prototype.doSome.call(this, 2);
        console.warn(this.CANumber);
    };
    return CA;
}(C));
var CB = /** @class */ (function (_super) {
    __extends(CB, _super);
    function CB() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return CB;
}(C));
(function () {
    var c1 = new CA('lbl');
    // c1.doSome();
    console.log(c1.getNum());
})();
